﻿<%@ Page Language="C#" MasterPageFile="~/SanPham/HomePage.master" AutoEventWireup="true" CodeFile="giohang.aspx.cs" Inherits="SanPham_giohang" Title="Giỏ hàng của bạn" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<script language="javascript" type="text/javascript">
// <!CDATA[
// ]]>
</script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
﻿    <div class="box-white">
        <span class="title_icon">&nbsp;</span><span style="font-size: 11pt"><span style="font-family: Tahoma"><span
            style="color: #006666"><strong>Lịch sử mua hàng</strong> &nbsp; </span></span></span>
    <br />
    <table style="width: 632px; text-align: center">
        <tr>
            <td style=" text-align: center" align="center">
                <asp:Repeater ID="rep_Cart" runat="server">
                    <HeaderTemplate>
                        <tr style="background-color:Olive;">
                            <td >
                                <strong>Hình ảnh</strong>
                            </td>
                            <td style ="width :150px;">
                               <strong>Sản Phẩm/Dịch vụ </strong> </td>
                            <td>
                               <strong > Giá</strong></td>
                            <td>
                               <strong > Số lượng</strong></td>
                            <td>
                               <strong >Tổng tiền</strong> </td>
                                <td>
                            <input id="cb_All" type="checkbox" onclick="CheckAll(1);" />
                            <a href="javascript:CheckAll(2)">Chọn hết</a>
                        </td>
                        </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <asp:Label ID="lb_masp" runat="server" Visible="False" Text='<%#Eval("MaSanPham")%>'></asp:Label>
                                    <img alt="" style ="width:75px;height :75px;" border="0" class="cart_thumb" src='../Photos/Thumb/<%#Eval("HinhChinh") %>'
                                        title="" />
                            </td>
                            <td>
                                <%#Eval("TenSanPham") %>
                            </td>
                            <td>
                                <asp:Label ID="Label1" runat="server" Text='<%#Eval("DonGia") %>'></asp:Label>
                                
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox1" Width ="35" runat="server" Text ='<%#Eval("SoLuong")%>'></asp:TextBox>
                                
                            </td>
                            <td>
                                <asp:Label ID="Label2" runat="server" Text='<%#Eval("ThanhTien") %>'></asp:Label>
                             &nbsp; &nbsp;VNĐ</td>
                             <td>
                    <asp:CheckBox ID="cb_Xoa" runat="server" />
                    <asp:HiddenField ID="hf_id" Value='<%#Eval("MaSanPham") %>' runat="server" />
                </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </tabe>
                    </FooterTemplate>
                </asp:Repeater>
            </td>
        </tr>
    </table>
    <br />
                <table style="width: 336px; height: 144px">
                    <tr>
                        <td class="cart_total" colspan="4" style="width: 5px; height: 16px; font-weight: bold;">
                            <span class="red" style="text-align: right; font-size: 11pt; color: #990000;">&nbsp;TOTAL:</span></td>
                        <td style="width: 279px; height: 16px">
                            <b>&nbsp;&nbsp;
                                <asp:Literal ID="lit_TongTien" runat="server"></asp:Literal></b> &nbsp; &nbsp;VNĐ &nbsp;&nbsp;
                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/SanPham/Default2.aspx" Font-Italic="True" Font-Size="13pt" ForeColor="#0000C0" ToolTip="Click để mua tiếp" Font-Bold="True">Mua Tiếp</asp:HyperLink></td>
                    </tr>
                    <tr>
                        <td class="cart_total" colspan="5" style="height: 16px; text-align: center">                  &nbsp;<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="Sửa số lượng" Height="32px" BackColor="Transparent" Font-Bold="True" ForeColor="Maroon" Width="144px" />
                            &nbsp; &nbsp;&nbsp;<asp:Button ID="Button3" runat="server" BackColor="Transparent"
                                Font-Bold="True" ForeColor="Maroon" Height="32px" OnClick="Button3_Click" Text="Xóa sản phẩm đã chọn"
                                Width="160px" /><br />
                            <br />
                            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Hủy Giỏ Hàng" Font-Bold="True" Font-Size="10pt" ForeColor="Red" Height="32px" ToolTip="Click để xóa giỏ hàng và về trang chủ" Width="152px" BackColor="Transparent" />
                            <asp:Button ID="btn_dathang" runat="server" OnClick="btn_dathang_Click" Text="Mua" Font-Bold="True" Font-Size="10pt" ForeColor="Red" Height="32px" BackColor="Transparent" Width="87px" />
                            <br />
                        </td>
                    </tr>
                </table>
    </div>
</asp:Content>

